function [ slopeVals ] = extractMaxMinCurve ( ecgGatedVel, globalMaxIdx, endSystoleXVal )
% Extracts the curve between max velocity and end systole

endSystoleXValIdx = find(ecgGatedVel == endSystoleXVal);

slopeVals = ecgGatedVel(globalMaxIdx:endSystoleXValIdx, :);


end

